package main;

public class Lab {
	private String Spec;
	private int Scientists;
	private HeadOfLaboratory labHead;
	
	public Lab(String spec,int scientists, String headOfLaboratoryName)
	{
		Scientists=scientists;
		Spec=new String(spec);
		labHead=new HeadOfLaboratory(headOfLaboratoryName, spec, scientists);
	}
	public Lab(Lab tocpy) {
		Scientists=tocpy.getScientists();
		Spec=tocpy.getSpec();
	}
	public String getSpec()
	{
		return new String(Spec);
	}
	public int getScientists()
	{
		return Scientists;
		
	}
	public HeadOfLaboratory getLabHead()
	{
		return labHead;
	}
	@Override
	public String toString() {
		StringBuilder ans = new StringBuilder(Spec);
		ans.append(" lab with ");
		ans.append(Scientists);
		ans.append(" scientists.");
		return ans.toString();
	}

}
